Calling this method will prompt the users with a dialog where they can select the document set they wish to work with. The options are All, Flagged or Selected documents. The method will return a Documents collection object, populated with the document set that was selected by the user.
This is one of the preferred methods of enumerating the result set.
Function()
The example below enumerates the chosen documents and outputs their filenames to a file called "c:\output.txt".
Set Documents = App.ActiveTab.FetchPrompt If Not Documents Is Nothing Then Set FSO = CreateObject("Scripting.FileSystemObject") Set Output = FSO.CreateTextFile("c:\output.txt", True) For Each Document in Documents Output.WriteLine Document.AbsoluteFilename Next End If